import { request } from "../request";

export function maniaccountList(params) {
  // 货单明细列表
  return request({
    url: `/product/v31/api/manifest/list`,
    method: "POST",
    params: params,
    headers: {
      token: sessionStorage.getItem("token"),
    },
  });
}

export function maniaccountDetail(id) {
  // 货单明细详情
  return request({
    url: `/product/v31/api/manifest/info/` + id,
    method: "GET",
    headers: {
      token: sessionStorage.getItem("token"),
    },
  });
}

export function maniaOrderList(params) {
  // 货单明细详情订单交易列表
  return request({
    url: `/product/v31/api/manifest/custTradelist`,
    method: "GET",
    params: params,
    headers: {
      token: sessionStorage.getItem("token"),
    },
  });
}

export function maniOrderDetail(params, code) {
  // 货单明细详情订单交易列表
  return request({
    url: `/product/v31/api/trade/getbycode/` + code,
    method: "GET",
    params,
    headers: {
      token: sessionStorage.getItem("token"),
    },
  });
}